<?php

namespace api\models;

use Yii;

/**
 * This is the model class for table "likes_infor".
 *
 * @property integer $id
 * @property integer $uid
 * @property integer $room_id
 * @property integer $is_like
 */
class LikesInfor extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'likes_infor';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid', 'room_id'], 'required'],
            [['uid', 'room_id', 'is_like'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'uid' => Yii::t('app', '用户id'),
            'room_id' => Yii::t('app', '房间号'),
            'is_like' => Yii::t('app', '是否点赞'),
        ];
    }
}
